]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspaceSwitcher: Initially hide after creation
authorAdel Gadllah <adel.gadllah@gmail.com>
Wed, 9 Feb 2011 22:57:23 +0000 (23:57 +0100)
committerAdel Gadllah <adel.gadllah@gmail.com>
Wed, 9 Feb 2011 23:16:32 +0000 (00:16 +0100)
The default state of the switcher is constructed but not visible,
so create it that way.

This fixes a bug where if we created the switcher but didn't show it
or use it we'd end up with an empty, odd looking switcher.

js/ui/workspaceSwitcherPopup.js

index ab1893372d00856936dc30bd0be81ba57fb691bc..79e5db972a83c3d7dcf5c509e4e87ec63c10e90f 100644 (file)
@@ -49,7 +49,8 @@ WorkspaceSwitcherPopup.prototype = {
 
         this._position();
 
-        this.actor.show();
+        this.actor.hide();
+
         this._timeoutId = Mainloop.timeout_add(DISPLAY_TIMEOUT, Lang.bind(this, this._onTimeout));
     },